<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp" %>
<%@ include file="/commons/nocache.jspf" %>
<%@ taglib uri="/FCKeditor" prefix="FCK"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http：//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http：//www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/form.dwt" codeOutsideHTMLIsLocked="true" -->

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
<script type="text/javascript" src="${ctx}/scripts/datepicker/wpCalendar.js"></script>
<!-- InstanceBeginEditable name="doctitle" -->
<title>留言管理</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="scripts" -->
<script type="text/javascript">
	function submitIt(obj){
		if(!validateStringNull("反映人姓名", "name")){
		   return false;
		}
		if(!validateStringNull("联系电话", "phone")){
		   return false;
		}
		if(!validateStringNull("标　　题", "theme")){
		   return false;
		}
		
	 	document.form1.submit();
	}	
</script>

<!-- InstanceEndEditable -->
</head>

<body>

<div id="main">
	<div class="zdsz" id="select1">
		<div class="tab">

<!-- InstanceBeginEditable name="tab" -->
<a href="#"><h3 class="sel" >审核留言</h3></a>
<a href="${ctx}/levelMessage/levelMessage!searchAdmin.action"><h3>留言列表</h3></a>
<!-- InstanceEndEditable -->
		</div>
		<div class="zd_gut">
			<ul class="block">
				<li>
		
<!-- InstanceBeginEditable name="form" -->

<form name="form1" action="${ctx}/levelMessage/levelMessage!modify.action" method="post"  enctype="multipart/form-data">
<input id="id" name="message.id"  type="hidden" value="${message.id}"/>
<table width="80%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC"> 
  <tr>
    <td width="11%" height="30" align="center" valign="middle" bgcolor="#DFEAF3">反映人姓名：</td>
    <td width="15%" align="left" valign="middle" bgcolor="#FFFFFF" class="tblz5">
        <input id="name" name="message.name"  type="text" size="18" maxlength="20" value="${message.name}" readOnly style="color:gray;"/>
    </td>
    <td height="26"  width="12%" align="center" valign="middle" bgcolor="#DFEAF3">性　　别：</td>
    <td width="15%"  align="left" valign="middle" bgcolor="#FFFFFF" class="tblz5">
        <pro:optionValue optionName="sex" value="${message.sex}"/>
    </td>
    <td width="12%" align="center" valign="middle" bgcolor="#DFEAF3"></td>
    <td width="15%" align="left" valign="middle" bgcolor="#FFFFFF" class="tblz5" readOnly style="color:gray;"></td>
  </tr>
  <tr>
    <td width="11%" height="28" align="center" valign="middle" bgcolor="#DFEAF3">联系电话：</td>
    <td align="left" valign="middle" bgcolor="#FFFFFF">
    	<input id="phone" name="message.phone"  type="text" size="18" maxlength="20" value="${message.phone}" readOnly style="color:gray;"/>
    </td>
    <td align="center" valign="middle" bgcolor="#DFEAF3">身份证号：</td>
    <td align="left" valign="middle" bgcolor="#FFFFFF">
    	<input id="cardNo" name="message.cardNo"  type="text" size="18" maxlength="18" value="${message.cardNo}" readOnly style="color:gray;"/>
    </td>
    <td align="center" valign="middle" bgcolor="#DFEAF3">反映时间：</td>
    <td align="left" valign="middle" bgcolor="#FFFFFF">
       <input id="date"  type="text" size="18" name="message.date" readOnly style="color:gray;" maxlength="200" value="<fmt:formatDate value="${message.date}" pattern="yyyy-MM-dd"/>" >
    </td>
  </tr>
  <tr>
    <td width="11%" height="30" align="center" valign="middle" bgcolor="#DFEAF3">标　　题：</td>
    <td colspan="5" width="11%" align="left" valign="middle" bgcolor="#FFFFFF" class="tblz5">
        <input id="theme" name="message.theme"  type="text" size="18" maxlength="32" value="${message.theme}" readOnly style="color:gray;"/>
    </td>
  </tr>
  <tr>
    <td height="30" align="center" valign="middle" bgcolor="#DFEAF3">内　　容：</td>
    <td colspan="5" align="left" valign="middle" bgcolor="#FFFFFF">
    <textarea id="content" name="message.content" cols="100" rows="6" onpropertychange="if(value.length>500) value=value.substr(0,500)" readOnly style="color:gray;">${message.content}</textarea></td>
    </td>    
  </tr>
   <tr>
    <td height="30" align="center" valign="middle" bgcolor="#DFEAF3">反馈信息：</td>
    <td colspan="5" align="left" valign="middle" bgcolor="#FFFFFF">
    <textarea name="message.feedback" cols="100" rows="6" onpropertychange="if(value.length>500) value=value.substr(0,500)">${message.feedback}</textarea></td>
    </td>
  </tr>
</table>

<!-- InstanceEndEditable -->
<font color="red"><div id="ERROR">${ERROR }</div></font>
<table  width="100" height="50" border="0" align="center" cellpadding="0" cellspacing="1" >
    <tr>
<!-- InstanceBeginEditable name="button" -->
      <td width="150" align="right"><input type="button"  onclick="submitIt(this);"  value="提交" class="btn"/></td>
      <td width="100" align="right"><input type="reset" value="重置" class="btn"/></td>
<!-- InstanceEndEditable --> 
	</tr>
</table>
</from>
</li>
		</ul>
	  </div>
	</div>
</div>
</body>
<!-- InstanceEnd --></html>
